﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="true" CodeBehind="ManageUsers.aspx.cs" Inherits="Earworm.Web.Admin.ManageUsers" %>
<asp:Content   ID="admin1" ContentPlaceHolderID=admin runat="server">

    <table style="width:100%;">
    <tr>
        <td>
            &nbsp;</td>
        <td align="center">
            <asp:GridView ID="gvUsers" runat="server" AutoGenerateColumns="False" 
                BorderColor="Red" DataSourceID="ldsUsers" ForeColor="Red" 
                style="color: #FF0000" DataKeyNames="UserKey">
                <Columns>
                    <asp:BoundField DataField="UserKey" HeaderText="UserKey" ReadOnly="True" 
                        SortExpression="UserKey" InsertVisible="False" />
                    <asp:BoundField DataField="FirstName" HeaderText="FirstName" 
                        SortExpression="FirstName" />
                    <asp:BoundField DataField="LastName" HeaderText="LastName" 
                        SortExpression="LastName" />
                    <asp:BoundField DataField="Email" HeaderText="Email" SortExpression="Email" />
                    <asp:BoundField DataField="Password" HeaderText="Password" 
                        SortExpression="Password" />
                    <asp:CheckBoxField DataField="Admin" HeaderText="Admin" 
                        SortExpression="Admin" />
                    <asp:BoundField DataField="DateCreated" HeaderText="DateCreated" 
                        SortExpression="DateCreated" />
                    <asp:BoundField DataField="DateModified" HeaderText="DateModified" 
                        SortExpression="DateModified" />
                    <asp:BoundField DataField="UserName" HeaderText="UserName" 
                        SortExpression="UserName" />
                    <asp:CommandField ButtonType="Button" ShowEditButton="True" />
                </Columns>
                <SelectedRowStyle BackColor="Yellow" />
            </asp:GridView>
            <asp:LinqDataSource ID="ldsUsers" runat="server" 
                ContextTypeName="Earworm.Web.DBM.EarwormDataContext" EnableUpdate="True" 
                EntityTypeName="" 
                TableName="Users">
            </asp:LinqDataSource>
            <br />
        </td>
        <td>
            &nbsp;</td>
    </tr>
</table>

</asp:Content>